package field.objects;

import util.Constants;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.audio.Sound;
import com.badlogic.gdx.graphics.Texture;
import com.badlogic.gdx.graphics.Texture.TextureFilter;

public class Laser extends Weapon implements Constants {
    public Laser() {
        super(new Texture("data/fires/ammo1.png"));
        initShip();
    }

    private void initShip() {
        super.setRapidity(5);
        super.setAtkSpeed(10f);
    }

    @Override
    public void load() {
        getTexture().setFilter(TextureFilter.Linear, TextureFilter.Linear);
        // this.setSize(8, 15);
        // setPosition(WIDTH / 2 - getWidth() / 2, 0);
    }

    @Override
    public void dispose() {
        getTexture().dispose();
    }

    @Override
    public Sound loadSound() {
        return Gdx.audio.newSound(Gdx.files.internal("data/sounds/fire1.ogg"));
    }
}
